package com.spring.controllerDI;

import com.spring.constructionDI.UserService;

/**
 * @ClassName: controllerDI
 * @Description: TODO
 **/
public class UserController {

    //通过setter方法注入userService
    private UserService userService;

    public void setUserService(UserService userService){
        this.userService = userService;
    }

    public int save(){
        return userService.save();
    }
}
